Skip to content

Type inference: Remove ParenExpr - #23025

Merged
hvitved merged 1 commit into
github:mainfrom
hvitved:type-inference-remove-paren-expr
Nov 5, 2026
Merged

hvitved merged 1 commit into
github:mainfrom
hvitved:type-inference-remove-paren-expr

Conversation

@hvitved

@hvitved hvitved commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@hvitved hvitved added the no-change-note-required This PR does not need a change note label Nov 5, 2026
@github-actions github-actions Bot added Rust Pull requests that update Rust code Unified labels Nov 5, 2026
@hvitved
hvitved marked this pull request as ready for review November 5, 2026 11:38
@hvitved
hvitved requested review from a team as code owners November 5, 2026 11:38
@hvitved
hvitved requested review from paldepind and an auto review from Copilot November 5, 2026 11:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the removal of the unused ParenExpr abstraction.

No open issues 🎉

What changed in this PR

This PR removes the unused ParenExpr abstraction from shared type inference and its Unified and Rust adapters, simplifying the input contract.

Changes:

  • Remove ParenExpr from the shared signature and its associated type-propagation rule.
  • Delete the corresponding placeholder classes from the Unified and Rust adapters.
File Description
unified/​ql/​lib/​codeql/​unified/​internal/​typeinference/​TypeInference.qll Remove the empty ParenExpr implementation.
shared/​typeinference/​codeql/​typeinference/​internal/​TypeInference.qll Remove the ParenExpr signature and propagation rule.
rust/​ql/​lib/​codeql/​rust/​internal/​typeinference/​TypeInference.qll Remove the placeholder ParenExpr class.

Review effort: Balanced (auto)

@hvitved
hvitved merged commit 1e3cc27 into github:main Nov 5, 2026
114 checks passed
@hvitved
hvitved deleted the type-inference-remove-paren-expr branch November 5, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants